package com.hzcc.hzccblog.module.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author 早睡蛋
 * @Date 2022/6/7 20:58:25
 * @Desc:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "admin")
public class Admin implements Serializable {

    @ApiModelProperty(value = "主键id")
    @TableId(type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "头像")
    @TableField("avator")
    private String avator;

    @ApiModelProperty(value = "浏览量")
    @TableField("visitor")
    private Long visitor;

}
